<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // let i = prompt('请输入一个数')
    // i = parseInt(i)
    // if (i % 2 === 0 && i % 6 === 0) {
    //   alert('ture')
    // } else (
    //   alert('false')
    // )

    let admin = 123456
    let mm = +prompt('请输入密码')
    if (mm = admin) {
      document.writeln('登录成功')
    } else {
      document.writeln('登录失败')
    }
  </script>
</body>

</html>